<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="C" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
  <head>
    <title>前台顶部文件</title>
    <script>
        function ds() {
            if (confirm("您确定要退出登录吗？")){
                location.href="http://localhost:8080/news_war_exploded/exitServlet";
            }
        }
    </script>
  </head>
  <body>
      <table border="0" width="900" height="90" background="images/logo.jpg">
        <tr>
          <td></td>
        </tr>
      </table>
      <table border="1" width="900" height="32" cellpadding="0" cellspacing="0" rules="rows">
          <tr>
              <%
                  int hitsCount = 0;
                  try {
                      hitsCount = (int)request.getSession().getAttribute("hitsCount");
                  } catch (Exception e) {
                      e.printStackTrace();
                      hitsCount = 0;
                  }
              %>
              <td align="center"><marquee  direction="right"  behavior="alternate"  scrollamount="15"  scrolldelay="10"  loop="2"  bgcolor="ABCDEF" ><center><font  face="隶书"  color="#0066FF"  size="4">尊敬的管理员:${user.user_name}，您好，欢迎回来！前台首页网站总访问量为：<%=hitsCount%>次</font></center></marquee>
              </td>
              <td align="center"><a href="javascript:ds();">退出</a></td>
          </tr>
      </table>
  </body>
</html>